Messages Collection Object

The Messages collection object contains one or more Message objects.

Quick Info

Specified in header file:

MDISP.ODL

First available in version:

OLE Messaging Library 1.0

Parent objects:

Folder (Inbox or Outbox)

Child objects:

MessageC062VO
MessageFilter19R8NUY

Default property:

Item1RHMKS5

 

A Messages collection is considered a large collection, which means that the Count and Item properties have limited validity, and your best option is to use a Message object identifier value or the Get methods to access an individual Message object within the collection.

Properties

 
Property name

Available in version

 
Type

 
Access

Application5GI0QO

1.0

String

Read-only

Class1CT5_O0

1.0

Long

Read-only

Count0O0O_L

1.1

Long

Read-only

Filter2NGT6YX

1.1

MessageFilter object

Read/write

Item1RHMKS5

1.1

Message object

Read-only

Parent13HN1VR

1.0

Inbox or Outbox folder object

Read-only

Session23X3PG

1.0

Session object

Read-only

 

Methods

 
Method name

Available in version

 
Parameters

AddF5G68T

1.0

(optional) subject as String,
(optional) text as String,
(optional) type as String,
(optional) importance as Long

Delete1GMMRRP

1.0

(none)

GetFirst9__LKW

1.0

(optional) filter as String

GetLast340._.9

1.0

(optional) filter as String

GetNext32T8DG

1.0

(none)

GetPrevious1ES5BWQ

1.0

(none)

Sort1K4R0UB

1.0

sortOrder as Long

 

Remarks

The collection does not maintain a count of the number of Message objects in the collection. Use the GetFirst, GetLast, GetNext, and GetPrevious methods to access the Message objects in the collection.

The order in which items are returned by GetFirst, GetNext, GetPrevious, and GetLast depends on whether the messages are sorted or not. The Message objects within a collection can be sorted by delivery time, either ascending or descending.

When the items are unsorted, these methods do not return the items in any specified order. The best programming approach to use with unsorted collections is to assume that you can access all items within the collection, but that the order of the objects is undefined.

See Also

Object CollectionsH0P41I